Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency wrangler to v3 #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 11, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
wrangler (source) 2.21.1 -> 3.77.0 age adoption passing confidence

Release Notes

cloudflare/workers-sdk (wrangler)

v3.77.0

Compare Source

Minor Changes
  • #​6674 831f892 Thanks @​andyjessop! - feat: Added new [[pipelines]] bindings. This creates a new binding that allows sending events to
    the specified pipeline.

    Example:

    [[pipelines]]
    binding = "MY_PIPELINE"
    pipeline = "my-pipeline"

  • #​6668 88c40be Thanks @​zebp! - feature: add observability setting to wrangler.toml

    Adds the observability setting which provides your Worker with automatic persistent logs that can be searched, filtered, and queried directly from the Workers dashboard.

  • #​6679 2174127 Thanks @​jkoe-cf! - feat: adding option to specify a rule within the config to delete (if no rules are specified, all rules get deleted)

  • #​6666 4107f57 Thanks @​threepointone! - feat: support analytics engine in local/remote dev

    This adds "support" for analytics engine datasets for wrangler dev. Specifically, it simply mocks the AE bindings so that they exist while developing (and don't throw when accessed).

    This does NOT add support in Pages, though we very well could do so in a similar way in a followup.

  • #​6640 8527675 Thanks @​petebacondarwin! - feat: experimental workers assets can be ignored by adding a .assetsignore file

    This file can be added to the root of the assets directory that is to be uploaded alongside the Worker
    when using experimental_assets.

    The file follows the .gitignore syntax, and any matching paths will not be included in the upload.

  • #​6652 648cfdd Thanks @​bthwaites! - feat: Update R2 Get Event Notification response, display, and actions

  • #​6625 8dcd456 Thanks @​maxwellpeterson! - feature: Add support for placement hints

    Adds the hint field to smart placement configuration. When set, placement hints will be used to decide where smart-placement-enabled Workers are run.

  • #​6631 59a0072 Thanks @​emily-shen! - feat: Add config options 'html_handling' and 'not_found_handling' to experimental_asset field in wrangler.toml

Patch Changes

v3.76.0

Compare Source

Minor Changes
  • #​6126 18c105b Thanks @​IRCody! - feature: Add 'cloudchamber curl' command

    Adds a cloudchamber curl command which allows easy access to arbitrary cloudchamber API endpoints.

  • #​6649 46a91e7 Thanks @​andyjessop! - feature: Integrate the Cloudflare Pipelines product into wrangler.

    Cloudflare Pipelines is a product that handles the ingest of event streams
    into R2. This feature integrates various forms of managing pipelines.

    Usage:
    wrangler pipelines create <pipeline>: Create a new pipeline
    wrangler pipelines list: List current pipelines
    wrangler pipelines show <pipeline>: Show a pipeline configuration
    wrangler pipelines update <pipeline>: Update a pipeline
    wrangler pipelines delete <pipeline>: Delete a pipeline

    Examples:
    wrangler pipelines create my-pipeline --r2 MY_BUCKET --access-key-id "my-key" --secret-access-key "my-secret"
    wrangler pipelines show my-pipeline
    wrangler pipelines delete my-pipline

Patch Changes

v3.75.0

Compare Source

Minor Changes
  • #​6603 a197460 Thanks @​taylorlee! - feature: log version preview url when previews exist

    The version upload API returns a field indicating whether
    a preview exists for that version. If a preview exists and
    workers.dev is enabled, wrangler will now log the full
    URL on version upload.

    This does not impact wrangler deploy, which only prints the
    workers.dev route of the latest deployment.

  • #​6550 8d1d464 Thanks @​Pedr0Rocha! - feature: add RateLimit type generation to the ratelimit unsafe binding.

Patch Changes
  • #​6615 21a09e0 Thanks @​RamIdeas! - chore: avoid potential double-install of create-cloudflare

    When wrangler init delegates to C3, it did so via npm create [email protected]. C3's v2.5.0 was the first to include auto-update support to avoid npx's potentially stale cache. But this also guaranteed a double install for users who do not have 2.5.0 cached. Now, wrangler delegates via npm create cloudflare@^2.5.0 which should use the latest version cached on the user's system or install and use the latest v2.x.x.

  • #​6603 a197460 Thanks @​taylorlee! - chore: fix version upload log order

    Previously deploy prints:
    upload timings
    deploy timings
    current version id

    while version upload prints:
    worker version id
    upload timings

    This change makes version upload more similar to deploy by printing
    version id after upload, which also makes more sense, as version ID can
    only be known after upload has finished.

v3.74.0

Compare Source

Minor Changes
Patch Changes

v3.73.0

Compare Source

Minor Changes
  • #​6571 a7e1bfe Thanks @​penalosa! - feat: Add deployment http targets to wrangler deploy logs, and add url to pages deploy logs

  • #​6497 3bd833c Thanks @​WalshyDev! - chore: move wrangler versions ..., wrangler deployments ..., wrangler rollback and wrangler triggers ... out of experimental and open beta.
    These are now available to use without the --x-versions flag, you can continue to pass this however without issue to keep compatibility with all the usage today.

    A few of the commands had an output that wasn't guarded by --x-versions those have been updated to use the newer output, we have tried to keep compatibility where possible (for example: wrangler rollback will continue to output "Worker Version ID:" so users can continue to grab the ID).
    If you wish to use the old versions of the commands you can pass the --no-x-versions flag. Note, these will be removed in the future so please work on migrating.

  • #​6586 72ea742 Thanks @​penalosa! - feat: Inject a 404 response for browser requested favicon.ico files when loading the /__scheduled page for scheduled-only Workers

  • #​6497 3bd833c Thanks @​WalshyDev! - feat: update wrangler deploy to use the new versions and deployments API.
    This should have zero user-facing impact but sets up the most used command to deploy Workers to use the new recommended APIs and move away from the old ones.
    We will still call the old upload path where required (e.g. Durable Object migration or Service Worker format).

Patch Changes

v3.72.3

Compare Source

Patch Changes

v3.72.2

Compare Source

Patch Changes

v3.72.1

Compare Source

Patch Changes

v3.72.0

Compare Source

Minor Changes
  • #​6479 3c24d84 Thanks @​petebacondarwin! - feat: allow HTTPS custom certificate paths to be provided by a environment variables

    As well as providing paths to custom HTTPS certificate files, it is now possible to use WRANGLER_HTTPS_KEY_PATH and WRANGLER_HTTPS_CERT_PATH environment variables.

    Specifying the file paths at the command line overrides specifying in environment variables.

    Fixes #​5997

Patch Changes

v3.71.0

Compare Source

Minor Changes
Patch Changes

v3.70.0

Compare Source

Minor Changes
Patch Changes

v3.69.1

Compare Source

Patch Changes

v3.69.0

Compare Source

Minor Changes
  • #​6392 c3e19b7 Thanks @​taylorlee! - feat: log Worker startup time in the version upload command

  • #​6370 8a3c6c0 Thanks @​CarmenPopoviciu! - feat: Create very basic Asset Server Worker and plumb it into wrangler dev

    These changes do the ground work needed in order to add Assets support for Workers in wrangler dev. They implement the following:

    • it creates a new package called workers-shared that hosts the Asset Server Worker, and the Router Workerin the future
    • it scaffolds the Asset Server Worker in some very basic form, with basic configuration. Further behaviour implementation will follow in a subsequent PR
    • it does the ground work of plumbing ASW into Miniflare
Patch Changes
  • #​6392 c3e19b7 Thanks @​taylorlee! - fix: remove bundle size warning from Worker deploy commands

    Bundle size was a proxy for startup time. Now that we have startup time
    reported, focus on bundle size is less relevant.

v3.68.0

Compare Source

Minor Changes
Patch Changes
  • #​6379 31aa15c Thanks @​RamIdeas! - fix: clearer error message when trying to use Workers Sites or Legacy Assets with wrangler versions upload

  • #​6367 7588800 Thanks @​RamIdeas! - fix: implicitly cleanup (call stop()) in unstable_dev if the returned Promise rejected and the stop() function was not returned

  • #​6330 cfbdede Thanks @​RamIdeas! - fix: when the worker's request.url is overridden using the host or localUpstream, ensure port is overridden/cleared too

    When using --localUpstream=example.com, the request.url would incorrectly be "example.com:8787" but is now "example.com".

    This only applies to wrangler dev --x-dev-env and unstable_dev({ experimental: { devEnv: true } }).

  • #​6365 13549c3 Thanks @​WalshyDev! - fix: WASM modules meant that wrangler versions secret ... could not properly update the version. This has now been fixed.

  • Updated dependencies [a9021aa, 44ad2c7]:

v3.67.1

Compare Source

Patch Changes
  • #​6312 67c611a Thanks @​emily-shen! - feat: add CLI flag and config key for experimental Workers + Assets

    This change adds a new experimental CLI flag (--experimental-assets) and configuration key (experimental_assets) for the new Workers + Assets work.

    The new flag and configuration key are for the time being "inactive", in the sense that no behaviour is attached to them yet. This will follow up in future work.

  • Updated dependencies [b3c3cb8]:

v3.67.0

Compare Source

Minor Changes
  • #​4545 e5afae0 Thanks @​G4brym! - Remove experimental/beta constellation commands and binding, please migrate to Workers AI, learn more here https://developers.cloudflare.com/workers-ai/.
    This is not deemed a major version bump for Wrangler since these commands were never generally available.

  • #​6322 373248e Thanks @​IRCody! - Add cloudchamber scope to existing scopes instead of replacing them.

    When using any cloudchamber command the cloudchamber scope will now be added to the existing scopes instead of replacing them.

  • #​6276 a432a13 Thanks @​CarmenPopoviciu! - feat: Add support for wrangler.jsonc

    This commit adds support for wrangler.jsonc config file for Workers. This feature is available behind the --experimental-json-config flag (just like wrangler.json).

    To use the new configuration file, add a wrangler.jsonc file to your Worker project and run wrangler dev --experimental-json-config or wrangler deploy --experimental-json-config.

    Please note that this work does NOT add wrangler.json or wrangler.jsonc support for Pages projects!

  • #​6168 1ee41ff Thanks @​IRCody! - feature: Add list and remove subcommands to cloudchamber registries command.

Patch Changes
  • #​6331 e6ada07 Thanks @​threepointone! - fix: only warn about miniflare feature support (ai, vectorize, cron) once

    We have some warnings in local mode dev when trying to use ai bindings / vectorize / cron, but they are printed every time the worker is started. This PR changes the warning to only be printed once per worker start.

v3.66.0

Compare Source

Minor Changes
  • #​6295 ebc85c3 Thanks @​andyjessop! - feat: introduce an experimental flag for wrangler types to dynamically generate runtime types according to the user's project configuration.

  • #​6272 084d39e Thanks @​emily-shen! - fix: add legacy-assets config and flag as alias of current assets behavior

    • The existing behavior of the assets config key/flag will change on August 15th.
    • legacy-assets will preserve current functionality.
Patch Changes

v3.65.1

Compare Source

Patch Changes

v3.65.0

Compare Source

Minor Changes
  • #​6194 25afcb2 Thanks @​zebp! - chore: Add duration and sourcemap size to upload metrics event

    Wrangler will now send the duration and the total size of any sourcemaps uploaded with your Worker to Cloudflare if you have metrics enabled.

  • #​6259 eb201a3 Thanks @​ottomated! - chore: Add types to DurableObjectNamespace type generation. For example:

    interface Env {
      OBJECT: DurableObjectNamespace<import("./src/index").MyDurableObject>;
    }
  • #​6245 e4abed3 Thanks @​OilyLime! - feature: Add support for Hyperdrive over Access configs

Patch Changes
  • #​6255 d497e1e Thanks @​rozenmd! - fix: teach wrangler init --from-dash about d1 bindings

    This PR teaches wrangler init --from-dash about D1 bindings, so they aren't incorrectly added to the wrangler.toml as unsafe bindings.

  • #​6258 4f524f2 Thanks @​dom96! - feature: Add warning about deploying Python with requirements.txt

    This expands on the warning shown for all Python Workers to include a message about deploying Python Workers with a requirements.txt not being supported.

  • #​6249 8bbd824 Thanks @​petebacondarwin! - chore: Update config-schema.json for the wrangler.toml

  • #​5955 db11a0f Thanks @​harugon! - fix: correctly escape newlines in constructType function for multiline strings

    This fix ensures that multiline strings are correctly handled by the constructType function. Newlines are now properly escaped to prevent invalid JavaScript code generation when using the wrangler types command. This improves robustness and prevents errors related to multiline string handling in environment variables and other configuration settings.

  • #​6263 fa1016c Thanks @​petebacondarwin! - fix: use cli script-name arg when deploying a worker with queue consumers

  • Updated dependencies [0d32448]:

v3.64.0

Minor Changes
  • #​4925 7d4a4d0 Thanks @​dom96! - feature: whoami, logout and login commands mention the CLOUDFLARE_API_TOKEN env var now

    It is easy to get confused when trying to logout while the CLOUDFLARE_API_TOKEN env var is set.
    The logout command normally prints out a message which states that the user is not logged in. This
    change rectifes this to explicitly call out that the CLOUDFLARE_API_TOKEN is set and requests that
    the user unsets it to logout.

Patch Changes
  • #​5032 75f7928 Thanks @​dbenCF! - Adding client side error handling for R2 when the user tries to create a bucket with an invalid name. The purpose of this addition is to provide the user with more context when encountering this error.

  • #​4398 4b1e5bc Thanks @​mattpocock! - fix: update tsconfig for Workers generated by wrangler init

v3.63.2

Patch Changes
  • #​6199 88313e5 Thanks @​dario-piotrowicz! - fix: make sure getPlatformProxy's ctx methods throw illegal invocation errors like workerd

    in workerd detaching the waitUntil and passThroughOnException methods from the ExecutionContext
    object results in them throwing illegal invocation errors, such as for example:

    export default {
      async fetch(_request, _env, { waitUntil }) {
        waitUntil(() => {}); // <-- throws an illegal invocation error
        return new Response("Hello World!");
      },
    };

    make sure that the same behavior is applied to the ctx object returned by getPlatformProxy

  • #​5569 75ba960 Thanks @​penalosa! - fix: Simplify wrangler pages download config:

    • Don't include inheritable keys in the production override if they're equal to production
    • Only create a preview environment if needed, otherwise put the preview config at the top level

v3.63.1

Compare Source

Patch Changes
  • #​6192 b879ce4 Thanks @​petebacondarwin! - fix: do not report D1 user errors to Sentry

  • #​6150 d993409 Thanks @​CarmenPopoviciu! - fix: Fix pages dev watch mode [_worker.js]

    The watch mode in pages dev for Advanced Mode projects is currently partially broken, as it only watches for changes in the "_worker.js" file, but not for changes in any of its imported dependencies. This means that given the following "_worker.js" file

    import { graham } from "./graham-the-dog";
    export default {
    	fetch(request, env) {
    		return new Response(graham)
    	}
    }
    

    pages dev will reload for any changes in the _worker.js file itself, but not for any changes in graham-the-dog.js, which is its dependency.

    Similarly, pages dev will not reload for any changes in non-JS module imports, such as wasm/html/binary module imports.

    This commit fixes all the aforementioned issues.

v3.63.0

Compare Source

Minor Changes
  • #​6167 e048958 Thanks @​threepointone! - feature: alias modules in the worker

    Sometimes, users want to replace modules with other modules. This commonly happens inside a third party dependency itself. As an example, a user might have imported node-fetch, which will probably never work in workerd. You can use the alias config to replace any of these imports with a module of your choice.

    Let's say you make a fetch-nolyfill.js

    export default fetch; // all this does is export the standard fetch function`

    You can then configure wrangler.toml like so:

v3.62.0

Compare Source

Minor Changes
  • #​5950 0075621 Thanks @​WalshyDev! - feat: add wrangler versions secret put, wrangler versions secret bulk and wrangler versions secret list

    wrangler versions secret put allows for you to add/update a secret even if the latest version is not fully deployed. A new version with this secret will be created, the existing secrets and config are copied from the latest version.

    wrangler versions secret bulk allows you to bulk add/update multiple secrets at once, this behaves the same as secret put and will only make one new version.

    wrangler versions secret list lists the secrets available to the currently deployed versions. wrangler versions secret list --latest-version or wrangler secret list will list for the latest version.

    Additionally, we will now prompt for extra confirmation if attempting to rollback to a version with different secrets than the currently deployed.

Patch Changes
  • #​6118 1621992 Thanks @​WalshyDev! - fix: rollback in the case of a secret change, the prompt meant to show was not showing due to the spinner in an interactive env. It will now properly show.

    chore: improve the view of wrangler versions view and change up copy a little for versions secret commands.

  • #​6105 26855f3 Thanks @​helloimalastair! - feat: Add help messages to all invalid r2 commands

  • #​3735 9c7df38 Thanks @​lrapoport-cf! - chore: Cleanup wrangler --help output

    This commit cleans up and standardizes the look and feel of all wrangler commands as displayed by wrangler --help and wrangler <cmd> --help.

  • #​6080 e2972cf Thanks @​threepointone! - chore: run eslint (with react config) on workers-playground/wrangler

    This enables eslint (with our react config) for the workers-playground project. Additionally, this enables the react-jsx condition in relevant tsconfig/eslint config, letting us write jsx without having React in scope.

  • #​6001 d39d595 Thanks @​penalosa! - chore: changes to how wrangler dev launches your worker, behind the experimental --x-dev-env flag

  • #​5214 05c5607 Thanks @​penalosa! - feat: Experimental file based service discovery when running multiple Wrangler instances locally. To try it out, make sure all your local Wrangler instances are running with the --x-registry flag.

  • Updated dependencies [7d02856, d4e1e9f]:

v3.61.0

Compare Source

Minor Changes
  • #​5995 374bc44 Thanks @​petebacondarwin! - feat: allow Durable Object migrations to be overridable in environments

    By making the migrations key inheritable, users can provide different migrations
    for each wrangler.toml environment.

    Resolves #​729

Patch Changes
  • #​6039 dc597a3 Thanks @​petebacondarwin! - fix: hybrid nodejs compat now supports requiring the default export of a CJS module

    Fixes #​6028

  • #​6051 15aff8f Thanks @​threepointone! - fix: Don't check expiry dates on custom certs

    Fixes https://github.com/cloudflare/workers-sdk/issues/5964

    For wrangler dev, we don't have to check whether certificates have expired when they're provided by the user.

  • #​6052 b4c0233 Thanks @​threepointone! - chore: Add .wrangler and .DS_Store to .gitignore generated by wrangler init

    This commit adds a small QOL improvement to init (to be deprecated in the future), for those who still use this wrangler command.

  • #​6050 a0c3327 Thanks @​threepointone! - chore: Normalize more deps

    This is the last of the patches that normalize dependencies across the codebase. In this batch: ws, vitest, zod , rimraf, @types/rimraf, ava, source-map, glob, cookie, @types/cookie, @microsoft/api-extractor, @types/mime, @types/yargs, devtools-protocol, @vitest/ui, execa, strip-ansi

    This patch also sorts dependencies in every package.json

  • #​6029 f5ad1d3 Thanks @​threepointone! - chore: Normalize some dependencies in workers-sdk

    This is the first of a few expected patche


Configuration

📅 Schedule: Branch creation - "every weekend" in timezone Asia/Makassar, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the renovate label Jun 11, 2023
@renovate renovate bot force-pushed the renovate/wrangler-3.x branch 2 times, most recently from 8fa23a6 to d94020c Compare June 21, 2023 05:33
@renovate renovate bot force-pushed the renovate/wrangler-3.x branch 3 times, most recently from 210709d to a09e166 Compare July 12, 2023 05:33
@renovate renovate bot force-pushed the renovate/wrangler-3.x branch 3 times, most recently from 097439d to 699906a Compare July 22, 2023 02:38
@renovate renovate bot force-pushed the renovate/wrangler-3.x branch 2 times, most recently from 5172dbb to 9053850 Compare July 29, 2023 02:08
@renovate renovate bot force-pushed the renovate/wrangler-3.x branch 3 times, most recently from e2f5496 to c58d43c Compare August 12, 2023 08:10
@renovate renovate bot force-pushed the renovate/wrangler-3.x branch 2 times, most recently from 945c9e9 to 40c5020 Compare August 20, 2023 02:24
@renovate renovate bot force-pushed the renovate/wrangler-3.x branch 2 times, most recently from a76a410 to 8023b73 Compare September 3, 2023 14:44
@renovate renovate bot force-pushed the renovate/wrangler-3.x branch 2 times, most recently from b743db1 to d8a239d Compare September 10, 2023 11:59
@renovate renovate bot force-pushed the renovate/wrangler-3.x branch 3 times, most recently from 74c7ee1 to 4ef9d61 Compare September 21, 2023 05:35
@renovate renovate bot force-pushed the renovate/wrangler-3.x branch 4 times, most recently from cc42cec to 0641c78 Compare September 30, 2023 02:53
@renovate renovate bot force-pushed the renovate/wrangler-3.x branch 3 times, most recently from 0aeee33 to a511c0c Compare October 12, 2023 05:14
@renovate renovate bot force-pushed the renovate/wrangler-3.x branch 2 times, most recently from b01def8 to 6fbee6d Compare June 8, 2024 05:23
@renovate renovate bot force-pushed the renovate/wrangler-3.x branch 2 times, most recently from dece480 to 09c5164 Compare June 15, 2024 05:47
@renovate renovate bot force-pushed the renovate/wrangler-3.x branch 2 times, most recently from 8dbcdc2 to 0a4b993 Compare June 22, 2024 21:00
@renovate renovate bot force-pushed the renovate/wrangler-3.x branch 3 times, most recently from 4c47479 to 27fc941 Compare July 10, 2024 05:04
@renovate renovate bot force-pushed the renovate/wrangler-3.x branch 2 times, most recently from 93f5544 to f815c1b Compare July 19, 2024 02:33
@renovate renovate bot force-pushed the renovate/wrangler-3.x branch 4 times, most recently from e5b7ae5 to d3da4c6 Compare July 28, 2024 05:35
@renovate renovate bot force-pushed the renovate/wrangler-3.x branch 3 times, most recently from 8aba07a to f159909 Compare August 7, 2024 05:54
@renovate renovate bot force-pushed the renovate/wrangler-3.x branch 3 times, most recently from 1c3ccbd to 032c02f Compare August 17, 2024 08:46
@renovate renovate bot force-pushed the renovate/wrangler-3.x branch 2 times, most recently from ecff7c6 to d986335 Compare August 28, 2024 02:37
@renovate renovate bot force-pushed the renovate/wrangler-3.x branch 3 times, most recently from 8b20814 to 8ef663c Compare September 7, 2024 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants